package rgs.sphere.jdbc.spi;

import java.util.ServiceLoader;

/**
 * @author RenGaoshuai
 * @date 2023/11/14 10:09
 * @description
 */
public class SPIDemo {
    public static void main(String[] args) {

        ServiceLoader<Animal> load = ServiceLoader.load(Animal.class);

        for (Animal animal : load) {
            animal.eat();
            animal.cry();
        }
    }
}
